package com.huluobo.a2308douyindemo.db

import androidx.room.Dao
import androidx.room.Delete
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
import com.huluobo.a2308douyindemo.bean.LikeVideoBean

/**
 *  Created by LC on 2025/11/7.
 */
@Dao
interface LikeDao {
    @Insert(onConflict = OnConflictStrategy.REPLACE)
    suspend fun insertLikeVideo(likeVideoBean: LikeVideoBean)

    @Delete
    suspend fun deleteLikeVideo(likeVideoBean: LikeVideoBean)

    @Query("select * from like_info where id=:id")
    suspend fun queryLikeVideoById(id: Int): LikeVideoBean?
}